//
//  AppConf.h
//  WeddingStoreFinder
//
//  Created by Macdev on 11/19/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import <MapKit/MapKit.h>

#define kAppConfKey_LastUpdateTimeStamp @"LastUpdateTimeStamp"


#define kBoolStringValue_True @"1"
#define kBoolStringValue_False @"0"
#define kBoolIntValue_True 1
#define kBoolIntValue_False 0

@interface AppConf : NSManagedObject

@property (nonatomic, retain) NSString * confName;
@property (nonatomic, retain) NSString * confValue;

+ (void) initAppConf;
+ (void) save;
+ (void) releaseAll;
//get an int value for a key:
+ (int) getIntForKey:(NSString*)key;
//set an int value for a key:
+ (void) setInt:(int)value forKey:(NSString*)key;
//get a double value for a key:
+ (double) getDoubleForKey:(NSString*)key;
//set a double value for a key:
+ (void) setDouble:(double)value forKey:(NSString*)key;
//get a string value for a key:
+ (NSString*) getStringForKey:(NSString*)key;
//set a string value for a key:
+ (void) setString:(NSString*)value forKey:(NSString*)key;
//get a BOOL value for a key:
+ (BOOL) getBOOLForKey:(NSString*)key;
//set a BOOL value for a key:
+ (void) setBOOL:(BOOL)value forKey:(NSString*)key;
//get a long long value for a key:
+ (long long) getLongLongForKey:(NSString*)key;
//set a long longs value for a key:
+ (void) setLongLong:(long long)value forKey:(NSString*)key;
//get a float value for a key:
+ (float) getFloatForKey:(NSString*)key;
//set a float value for a key:
+ (void) setFloat:(float)value forKey:(NSString*)key;

+ (void) setUserLocation:(MKUserLocation*)newValue;
+ (MKUserLocation*) getUserLocation;

@end
